package com.itheima.day12.properties;

import java.io.FileReader;
import java.util.Properties;
import java.util.Set;

public class Test {
    public static void main(String[] args) throws Exception {
        Properties p = new Properties();
        p.load(new FileReader("D:\\javajc_ws\\javaEE\\src\\com\\itheima\\properties\\ceshi\\ceshi.properties") );
        System.out.println(p.getProperty("s"));
        Set<Object> objects = p.keySet();
        for (Object object : objects) {
            String key = (String) object;
            String value = p.getProperty(key);
            System.out.println(key+"="+value);
        }
    }
}
